package cn.juque.lucenecandy.core.base;

import cn.juque.lucenecandy.bo.IndexBO;
import lombok.Data;
import lombok.ToString;
import org.apache.lucene.search.BooleanClause;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.Sort;

import java.io.Serializable;
import java.util.Map;
import java.util.Set;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>AbstractWrapper</li>
 * </ul>
 * @date 2023-12-27
 **/
@Data
@ToString
public abstract class AbstractWrapper implements Serializable {

    protected String className;

    protected IndexBO indexInfo;

    protected Map<Query, BooleanClause.Occur> queryMap;

    protected Sort sort;

    protected Set<String> fieldToLoad;

    protected AbstractWrapper() {
    }
}
